#define MAX_NODES_NUM 64
#define DEFAULT_PORT 12321
#define BUFF_SIZE 1024
struct flycache_cluster
{
	struct conhash_s *conhash; 
	int server_count; 
}; 
struct server_node_s  
{
	int sockfd; 
	char *ip; 
	int port; 
}; 
struct flycache_cluster * fly_init();
int fly_free(struct flycache_cluster *cluster);

int fly_add_server(struct flycache_cluster *cluster, char *ip, int port); 
int fly_del_server(struct flycache_cluster *cluster, char *ip, int port); 
int fly_store(struct flycache_cluster *cluster,const char *key, int flag,int exptime, int length,const char * value); 
char *fly_get(struct flycache_cluster *cluster,const char *key); 
